<?php $this->JQuery()->enable();?>
<div id="main">
				<div class="body">
					<ul id="list">
			           	<?php
									foreach($this->vanban as $vanban)
									{
										$id = $vanban->getId();
										$tenvb = $vanban->getTenvanban();
										$nhomvanban = $vanban->getNhom();
										$tennhom = $nhomvanban->getTenNhom();
										
										$phongban = $vanban->getPhongban();
										$tenphongban = $phongban->getTenPhongban();
										
										$chinhanh = $vanban->getChinhanh();
										$tenchinhanh = $chinhanh->getTenchinhanh();
										
										$loaivanban = $vanban->getLoaivanban();
										$tenloai = $loaivanban->getTenLoai();
										
										$ngay = $vanban->getNgay();
										$ngaybanhanh = $vanban->getNgaybanhanh();
										$noidung = $vanban->getTrichdan();
										$ngaycohieuluc  = $vanban->getNgaycohieuluc();
										$trangthai = $vanban->trangthaiList();
										$doquantrong =$vanban->doquantrongList();
										$nguoiduyet = $vanban->getNguoiduyet();
											
										$taptins = $vanban->getTaptin();
										foreach ($taptins as $taptin){
											$tentaptin = $taptin->getTentaptin();
										}
										
										$linkChitiet = $this->baseUrl('/default/vanban/chitiet/id/'.$id);
										
								?>
	           
	           
						<li>
							<span class="time"><?php echo $ngay?></span>
							<h3><?php echo $tenvb?></h3>
							<p>
						
								<?php echo $noidung;
										echo $tenphongban;
										echo $tenchinhanh;
								?>
							</p>
							<a href="<?php echo $linkChitiet?>" class="more">Xem >></a>
						</li>
				<?php 
				}
				?>		
				</ul>
					<div id="pagination">
						<a href="news.html">&lt;&lt;</a> <a href="news.html">First</a> <a href="news.html">1</a> <a href="news.html">2</a> <a href="news.html">3</a> <a href="news.html">4</a> ...... <a href="news.html">18</a> <a href="news.html">19</a> <a href="news.html">20</a> <a href="news.html">Last</a> <a href="news.html">&gt;&gt;</a>
					</div>
				</div>
				</div>
				<?php echo $this->render('/vanban/nav/index.php');?>
	           
	           